package cn.bocai.pc.dao;

import java.util.Map;

import cn.bocai.pc.model.BcUser;

public interface BcUserMapper {
	//ajax查询用户名是否存在
	BcUser selectNameExist(String name);
		
	//新用户注册
	int insertRegister(BcUser record);
		
	//用户登入查询登入信息
	BcUser selectLogin(BcUser record);
		
	//登入以后修改用户密码
	int updateUserPaw(Map<String, Object> par);
		
	//注册时查询邮箱是否存在
	BcUser selectEmail(String email);
		
    int deleteByPrimaryKey(String userId);

    int insert(BcUser record);

    int insertSelective(BcUser record);

    BcUser selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(BcUser record);

    int updateByPrimaryKey(BcUser record);
}